
<!--
  Preview this file by prepending http://htmlpreview.github.io/? to its URL
  e.g. http://htmlpreview.github.io/?https://raw.githubusercontent.com/Azure/bicep/main/src/monarch/test/baselines/params.html
-->
<html>
  <head>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/styles/default.min.css">
  </head>
  <body>
    <pre class="hljs">
<span class="hljs-comment">/*</span>
<span class="hljs-comment">This is a</span>
<span class="hljs-comment">multiline comment!</span>
<span class="hljs-comment">*/</span>

<span class="hljs-comment">// This is a single line comment</span>

<span class="hljs-comment">// using keyword for specifying a Bicep file</span>
<span class="hljs-keyword">using</span> <span class="hljs-string">&#39;</span><span class="hljs-string">./params_main.bicep&#39;</span>

<span class="hljs-comment">// parameter assignment to literals</span>
<span class="hljs-keyword">param</span> <span class="hljs-variable">myString</span> = <span class="hljs-string">&#39;</span><span class="hljs-string">hello world!!&#39;</span>
<span class="hljs-keyword">param</span> <span class="hljs-variable">myInt</span> = <span class="hljs-number">42</span>
<span class="hljs-keyword">param</span> <span class="hljs-variable">myBool</span> = <span class="hljs-keyword">true</span>

<span class="hljs-comment">// parameter assignment to objects</span>
<span class="hljs-keyword">param</span> <span class="hljs-variable">password</span> = <span class="hljs-string">&#39;</span><span class="hljs-string">strongPassword&#39;</span>
<span class="hljs-keyword">param</span> <span class="hljs-variable">secretObject</span> = {
  <span class="hljs-variable">name</span> : <span class="hljs-string">&#39;</span><span class="hljs-string">vm2&#39;</span>
  <span class="hljs-variable">location</span> : <span class="hljs-string">&#39;</span><span class="hljs-string">westus&#39;</span>
}
<span class="hljs-keyword">param</span> <span class="hljs-variable">storageSku</span> = <span class="hljs-string">&#39;</span><span class="hljs-string">Standard_LRS&#39;</span>
<span class="hljs-keyword">param</span> <span class="hljs-variable">storageName</span> = <span class="hljs-string">&#39;</span><span class="hljs-string">myStorage&#39;</span>
<span class="hljs-keyword">param</span> <span class="hljs-variable">someArray</span> = [
  <span class="hljs-string">&#39;</span><span class="hljs-string">a&#39;</span>
  <span class="hljs-string">&#39;</span><span class="hljs-string">b&#39;</span>
  <span class="hljs-string">&#39;</span><span class="hljs-string">c&#39;</span>
  <span class="hljs-string">&#39;</span><span class="hljs-string">d&#39;</span>
]
<span class="hljs-keyword">param</span> <span class="hljs-variable">emptyMetadata</span> = <span class="hljs-string">&#39;</span><span class="hljs-string">empty!&#39;</span>
<span class="hljs-keyword">param</span> <span class="hljs-variable">description</span> = <span class="hljs-string">&#39;</span><span class="hljs-string">descriptive description&#39;</span>
<span class="hljs-keyword">param</span> <span class="hljs-variable">description2</span> = <span class="hljs-string">&#39;</span><span class="hljs-string">also descriptive&#39;</span>
<span class="hljs-keyword">param</span> <span class="hljs-variable">additionalMetadata</span> = <span class="hljs-string">&#39;</span><span class="hljs-string">more metadata&#39;</span>
<span class="hljs-keyword">param</span> <span class="hljs-variable">someParameter</span> = <span class="hljs-string">&#39;</span><span class="hljs-string">three&#39;</span>
<span class="hljs-keyword">param</span> <span class="hljs-variable">stringLiteral</span> = <span class="hljs-string">&#39;</span><span class="hljs-string">abc&#39;</span>
<span class="hljs-keyword">param</span> <span class="hljs-variable">decoratedString</span> = <span class="hljs-string">&#39;</span><span class="hljs-string">Apple&#39;</span>


    </pre>
  </body>
</html>